package com.g6.demo.consumer;

import com.g6.demo.City;
import com.g6.demo.consumer.service.MyService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @Author: g6
 * @Date: 2019/4/19 11:03
 */
@SpringBootApplication
public class ConsumerApplication {
    public static void main(String[] args){
        ConfigurableApplicationContext run = SpringApplication.run(ConsumerApplication.class, args);
        MyService bean = run.getBean(MyService.class);
        City cityByName = bean.findCityByName("");
        System.out.println(cityByName.toString());
    }
}
